|
|
|
|
|
|
|
Listing 14.8 shows the openAccount method of the OpenAccount class. |
|
|
|
|
|
|
|
|
LISTING 14.8. THEopenAccountMETHOD. |
|
|
|
 |
|
|
|
|
1: Public Sub openAccount()
2: On Error GoTo openAccountErr
3:
4: 'your code goes here
5: theApplication.theAppTransactions.addTrans2MemLog Deposited funds
6: Exit Sub
7: openAccountErr:
8: Call RaiseError(MyUnhandledError, OpenAccount:openAccount Method)
9: End Sub
10: |
|
|
|
|
|
|
|
|
Finally, Listing 14.9. shows the withdraw method of the withdrawFunds class. |
|
|
|
|
|
|
|
|
LISTING 14.9. THEwithdrawMETHOD. |
|
|
|
 |
|
|
|
|
1: Public Sub withdraw()
2: On Error GoTo withdrawErr
3:
4: 'your code goes here
5: theApplication.theAppTransactions.addTrans2MemLog Withdrew funds
6: Exit Sub
7: withdrawErr:
8: Call RaiseError(MyUnhandledError, WithdrawFunds:withdraw Method)
9: End Sub
10: |
|
|
|
|
|
|
|
|
This chapter presented you with an overview of the Internal Application Manager Subsystem. You learned the purpose of this subsystem. You learned how to manage application state issues for Internet and desktop applications and application settings and user preferences. This chapter also discusses how to use the Windows 95 Registry and VB5 and the older INI file. Logging user interactions with the application, errors and exceptions, and memory allocations/deallocations is also covered. You learned how to manage the classes in the subsystem, as well as their methods, properties, arguments, and returns. Finally, you incorporated the subsystem into the Samsona Bank Teller System example. |
|
|
|
|
|